<?php

	$arr = array(
		array("name" => "James", "sex" => "M", "age" => "28"),
		array("name" => "Iris", "sex" => "F", "age" => 27)
	);

?>

<table border="1" cellspacing="1" cellpadding="5">
	<tr>
		<td>Name</td><td>Sex</td><td>Age</td>
	</tr>
	<?php
		foreach ($arr as $row) {
	?>
			<tr><td><?=$row["name"] ?></td><td><?=$row["sex"] ?></td><td><?=$row["age"] ?></td></tr>
	<?php
		}
	?>
</table>